package com.jian.mall.service;

import com.jian.mall.common.to.elasticsearch.SkuEsTo;
import com.jian.mall.vo.SearchConditionVo;
import com.jian.mall.vo.SearchResult;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;


public interface ElasticsearchService {
    void saveBatch(List<SkuEsTo> skuEsTo) throws IOException;

    /**
     *
     * @param conditionVo 检索的各种条件
     * @return 返回检索的结果
     */
    SearchResult byConditionVoSearch(SearchConditionVo conditionVo);
}
